<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>支付宝测试</title>
  <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<form name=alipayment  id="formDiv" action="alipaySum">
  <div id="body1" class="show" name="divcontent">
    <dl class="content">
      <dt>金额 ：</dt>
      <dd>
        <input id="WIDout_trade_no" name="WIDtotal_amount" />
      </dd>
      <hr class="one_line">
      <dt>订单名称 ：</dt>
      <dd>
        <input id="WIDsubject" name="WIDsubject" />
      </dd>
      <hr class="one_line">
      <dt>备注 ：</dt>
      <dd>
        <input id="WIDtotal_amount" name="WIDout_trade_no" />
      </dd>
      <hr class="one_line">
      <dt>商品描述：</dt>
      <dd>
        <input id="WIDbody" name="WIDbody" />
      </dd>
      <hr class="one_line">
      <dt></dt>
      <dd id="btn-dd">
                        <span class="new-btn-login-sp">
                            <button class="new-btn-login" type="submit"
                                    style="text-align: center;" id="btn" >付 款</button>
                        </span>
        <span class="note-help">如果您点击“付款”按钮，即表示您同意该次的执行操作。</span>
      </dd>
    </dl>
  </div>
</form>
<script>
    $("#btn").click(function(){
        var da = $("#formDiv").serialize();
        $.post("alipaySum",da,"json")
    })
</script>
</body>
</html>